﻿using StoreTools.Common;
using System.Text;

namespace StoreTools.Online.Model
{
    public class LogModel:NotifyBase
    {
        public LogModel() { }

        private StringBuilder detailedInfo = new StringBuilder();
        /// <summary>
        /// 详细日志窗口日志内容
        /// </summary>
        public string DetailedInfo
        {
            get { return detailedInfo.ToString(); }
            set { detailedInfo.AppendLine(value); this.DoNotify(); }
        }

        /// <summary>
        /// 清除日志内容
        /// </summary>
        public void CleanInfo()
        {
            detailedInfo.Clear();
            DetailedInfo = "";
        }


    }
}
